	function toggleItem(id)
    {
        itm = document.getElementById(id);

        if(!itm)
            return false;

        if(itm.style.display == 'none')
            itm.style.display = '';
        else
            itm.style.display = 'none';

        return false;
    }
	
	function showItem(id)
	{
	    itm = document.getElementById(id);

        if(!itm)
            return false;

			itm.style.display = '';	
	}
	
	function hideItem(id)
	{
	    itm = document.getElementById(id);

        if(!itm)
            return false;

		itm.style.display = 'none';	
	}
	
	function showPrice() {
		showItem("price");
		hideItem("total");	
		document.getElementById("priceTab").style.cursor = "default";
		document.getElementById("totalTab").style.cursor = "pointer";
		document.getElementById("priceTab").style.backgroundColor = "DBE5F1";
		document.getElementById("totalTab").style.backgroundColor = "B8CCE4";
	}
/*	
	function showTotal() {
		showItem("total");
		hideItem("price");
		document.getElementById("priceTab").style.cursor = "pointer";
		document.getElementById("totalTab").style.cursor = "default";
		document.getElementById("priceTab").style.backgroundColor = "B8CCE4";
		document.getElementById("totalTab").style.backgroundColor = "DBE5F1";
	}
*/
	
	function setSession(id) {
        itm = document.getElementById(id);

        if(!itm)
            return false;
		
		key = "menu_" + id
		if (itm.style.display == 'none') {
			val = 'false';
		} else {
			val = 'true';
		}
		setCookie(key,val,1);
	}
	
	function setCookie(c_name,value,expiredays)
	{
		var exdate=new Date();
		exdate.setDate(exdate.getDate()+expiredays);
		document.cookie=c_name+ "=" +escape(value)+
		((expiredays==null) ? "" : ";expires="+exdate.toUTCString());
	}
	
	function clearBox(id, def) {
		elem = document.getElementById(id);
		if (elem.value == def) {
			elem.value = '';
		} 
	
	}